concat-idents!
This crate provides a single, easy to use macro.
Usage
Basic usage
use concat_idents;
concat_idents!;
foo__bar;
Allowed identifier parts
concat_idents!;
concat_idents!;
concat_idents!;
concat_idents!;
concat_idents!;
concat_idents!;
concat_idents!;
concat_idents!;
Generating Tests
;
};
}
;
generate_test!;
generate_test!;
)
Error
This macro will throw a compile error, if:
- an unexpected syntax is passed
concat_idents!;
concat_idents!;
concat_idents!;
concat_idents!;
concat_idents!;
...
- one of the identifiers is invalid
concat_idents!; // identifiers cannot consist of only one bool
concat_idents!; // identifiers cannot consist of only one int
concat_idents!; // identifiers cannot start with an int
concat_idents!; // identifiers cannot contain floats
concat_idents!; // identifiers cannot consist of only one reserved keyword
concat_idents!; // identifiers cannot consist of only one reserved keyword
concat_idents!; // identifiers cannot contain spaces
concat_idents!; // identifiers can only contain [a-zA-Z0-9_]
...